package com.uchengwang.functions.http.config;

import com.uchengwang.functions.http.listener.IHttpManager;

/**
 * Created by U城网 on 2017/5/26.
 * 社团请求配置
 */

public interface ClubConfig {

    public interface Club {
        //获取社团列表 || 获取某个社团信息
        IHttpManager.RequestMethod method = IHttpManager.RequestMethod.GET;
        IHttpManager.RequestMethod method_create = IHttpManager.RequestMethod.POST;//新建/认证社团
        IHttpManager.RequestMethod method_change = IHttpManager.RequestMethod.PUT;//修改社团信息

        String URL = "/org";
    }

    /**
     * 群组
     * */
    public interface ClubGroup{
        IHttpManager.RequestMethod method_create = IHttpManager.RequestMethod.POST;
        IHttpManager.RequestMethod method_get = IHttpManager.RequestMethod.GET;//获取某个校吧的群组
        IHttpManager.RequestMethod method_change = IHttpManager.RequestMethod.PUT;//修改群的信息 只有社团管理员才可调用
        String URL = "/org/group";
    }

    /**
     * 创建一个组织环信群(普通用户)
     * */
    public interface CreateGroup{
        IHttpManager.RequestMethod method_create = IHttpManager.RequestMethod.POST;
        String URL = "/org/group/user";
    }

    /**
     * 获取一个环信群组信息
     * */
    public interface GroupInfo{
        IHttpManager.RequestMethod method_get = IHttpManager.RequestMethod.GET;
        IHttpManager.RequestMethod method_delete = IHttpManager.RequestMethod.DELETE;
        String URL = "/org/group/hx";
    }



    /**
     * 新建/修改一个社团纳新  获取全部和某社团的纳新
     * */
    public interface ClubAccess{
        IHttpManager.RequestMethod method_get = IHttpManager.RequestMethod.GET;
        IHttpManager.RequestMethod method_create = IHttpManager.RequestMethod.POST;
        IHttpManager.RequestMethod method_change = IHttpManager.RequestMethod.PUT;
        String URL = "/org/recruit";
    }

    /**
     * 社团查看纳新报名人数  报名一个社团纳新  取消一个纳新计划
     * */
    public interface ClubEnroll{
        IHttpManager.RequestMethod method_get = IHttpManager.RequestMethod.GET;
        IHttpManager.RequestMethod method_apply = IHttpManager.RequestMethod.POST;
        IHttpManager.RequestMethod method_delete = IHttpManager.RequestMethod.DELETE;
        String URL = "/org/recruit/enroll";

    }

    /**
     * 批准某人的报名申请
     * */
    public interface ClubApprove{
        IHttpManager.RequestMethod method = IHttpManager.RequestMethod.POST;
        String URL = "/org/recruit/enroll/approve";
    }

    /**
     * 查看给社团的留言  新建新留言
     * */
    public interface ClubMsg{
        IHttpManager.RequestMethod method_get = IHttpManager.RequestMethod.GET;
        IHttpManager.RequestMethod method_create = IHttpManager.RequestMethod.POST;
        String URL = "/org/recruit/enroll/msg";
    }

    /**
     * 个人查看自己社团的纳新报名
     * */
    public interface ClubPerson{
        IHttpManager.RequestMethod method = IHttpManager.RequestMethod.GET;
        String URL = "/org/recruit/enroll/my";
    }

    /**
     * 激活/关闭 纳新
     * */
    public interface ClubSwitch{
        IHttpManager.RequestMethod method = IHttpManager.RequestMethod.PUT;
        String URL = "/org/recruit/switch";
    }

    /**
     * 举报一个社团纳新
     * */
    public interface ReportClubAccess{
        IHttpManager.RequestMethod method = IHttpManager.RequestMethod.POST;
        String URL = "/org/recruit/report";
    }

    /**
     * 获取 /新建/删除 关联社团
     * */
    public interface ClubLink{
        IHttpManager.RequestMethod method_get = IHttpManager.RequestMethod.GET;
        IHttpManager.RequestMethod method_post = IHttpManager.RequestMethod.POST;
        IHttpManager.RequestMethod method_delete = IHttpManager.RequestMethod.DELETE;
        String URL = "/org/link";
    }

    /**
     * 获取某个社团的成员
     * */
    public interface ClubMemeber{
        IHttpManager.RequestMethod method = IHttpManager.RequestMethod.GET;
        String URL = "/org/member";
    }

    /**
     * 校吧话题banner获取
     * */
    public interface TopicBanner{
        IHttpManager.RequestMethod method = IHttpManager.RequestMethod.GET;
        String URL = "/org/banner";
    }

    /**
     * 校吧话题的banner评论获取
     * */
    public interface TopicCmt{
        IHttpManager.RequestMethod method = IHttpManager.RequestMethod.GET;
        IHttpManager.RequestMethod method_release = IHttpManager.RequestMethod.POST;//发布话题内容
        IHttpManager.RequestMethod method_delete = IHttpManager.RequestMethod.DELETE;
        String URL = "/org/banner/cmt";
    }

    /**
     * 校吧评论的点赞与取消
     * */
    public interface TopicZan{
        IHttpManager.RequestMethod method_get = IHttpManager.RequestMethod.GET;
        IHttpManager.RequestMethod method_zan = IHttpManager.RequestMethod.POST;
        IHttpManager.RequestMethod method_delete = IHttpManager.RequestMethod.DELETE;
        String URL = "/org/banner/cmt/like";
    }

    /**
     * 获取某个话题的评论
     * */
    public interface TopicCmtCmt{
        IHttpManager.RequestMethod method = IHttpManager.RequestMethod.GET;//获取某个话题的回复
        IHttpManager.RequestMethod method_post = IHttpManager.RequestMethod.POST;//回复
        IHttpManager.RequestMethod method_delete = IHttpManager.RequestMethod.DELETE;//删除一个回复
        String URL = "/org/banner/cmt/reply";
    }

    /**
     * 举报一个话题的评论
     * */
    public interface ReportTopicCmt{
        IHttpManager.RequestMethod method = IHttpManager.RequestMethod.POST;
        String URL = "/org/banner/cmt/report";
    }

    /**
     * 转让社团
     * 获取验证码
     * */
    public interface Transfer{
        IHttpManager.RequestMethod method_post = IHttpManager.RequestMethod.POST;
        IHttpManager.RequestMethod method_put = IHttpManager.RequestMethod.PUT;
        String URL = "/org/transfer";
    }

    /**
     * 社团邀请人加入
     * */
    public interface Invite{
        IHttpManager.RequestMethod method = IHttpManager.RequestMethod.POST;
        String URL_INVITE = "/org/invite";//社长对某一个用户发出邀请(仅普通用户可以被邀请)
        String URL_ACCEPT = "/org/invite/accept";//接受某一个邀请
    }

    /**
     * 查看邀请记录
     * */
    public interface InviteRecord{
        IHttpManager.RequestMethod method = IHttpManager.RequestMethod.GET;
        String URL_ORG = "/org/invite/org";//社团查看邀请记录
        String URL_USER = "/org/invite/user";//用户查看自己的被邀请加入社团记录
    }

    /**
     * 获取某个学校的社团
     * */
    public interface getSchoolClubs{
        IHttpManager.RequestMethod method = IHttpManager.RequestMethod.GET;
        String URL = "/org/auth/data";
    }

    /**
     * 创建社团纳新报名群
     * */
    public interface CreateRecruitGroup{
        IHttpManager.RequestMethod method = IHttpManager.RequestMethod.POST;
        String URL = "/org/recruit/group";
    }

    /**
     * 社团社长获取自己是否有未读的纳新信息
     * */
    public interface GetClubNoRead{
        IHttpManager.RequestMethod method = IHttpManager.RequestMethod.GET;
        String URL = "/org/notice/recruit";
    }

}
